package com.hnas.common.domain;

import java.util.HashMap;
import java.util.Map;

public class CommonStatus {

	public static final int FAIL = 0;
	public static final int SUCCESS = 1;
	
	public static final String TRUE="1";
	public static final String FALSE="0";

	private static Map<Object, String> map = new HashMap<Object, String>();
	static {
		map.put(FAIL, "失败");
		map.put(SUCCESS, "成功");
		map.put(TRUE, "是");
		map.put(FALSE, "否");
	}

	public static String getCommonStatusString(Object status) {
		return map.get(status);
	}

	public static Map<Object, String> getCommonStatusMap() {
		return map;
	}
}
